package com.xujc;

import com.xujc.dao.IFormDAO;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Stack;

/**
 * Created by xujc on 6/15/15.
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
        IFormDAO object = (IFormDAO) context.getBean("formDAO");
        object.createForm("汽车", "zh");
        object.createForm("软件", "zh");
        object.createForm("动漫", "zh");
        Stack stack=new Stack();
    }
}
